package com.fatdetection.demo.service.imp;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fatdetection.demo.bean.Reference;
import com.fatdetection.demo.mapper.ReferenceMapper;
import com.fatdetection.demo.service.ReferenceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ReferenceSerivceImp implements ReferenceService {

    @Autowired
    ReferenceMapper referenceMapper;

    @Override
    public Reference getReference(String partName) {
        return referenceMapper.selectOne(new QueryWrapper<Reference>().eq("reference_name", partName));
    }
}
